<template>
	<view class="dmm-container dmm-container-grey">
		<view class="section">
		  <u-cell-group :border="false">
				<u-cell title="头像" >
					<image slot="right-icon" src="/static/imgs/avatar.png" mode=""></image>
				</u-cell>
				<u-cell title="实名状态" :value="agentStatusEnum[agentInfo.agentStatus]">
				</u-cell>
				<u-cell title="代理商编号" :value="agentInfo.agentNo">
				</u-cell>
			</u-cell-group>
		</view>
	</view>
</template>

<script>
	import {mapState} from 'vuex'
	import {agentStatusEnum} from '@/common/constants';
	
	export default {
		data() {
			return {
				agentStatusEnum
			};
		},
		
		computed: {
			...mapState('home', ['agentInfo'])
		}
	}
</script>

<style lang="scss">
	.section {
		padding: 0 30rpx;
		background-color: #fff;
		.u-cell {
			image {
				height: 128rpx;
				width: 128rpx;
			}
			
			/deep/ .u-cell__body {
				padding: 38rpx 0;
			}
			
			/deep/ text {
				font-size: 28rpx;
			}
		}
	}
</style>
